package io.geekidea.boot.area.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tb_area")
@HeadRowHeight(value = 30) // 头部行高
@ContentRowHeight(value = 25) // 内容行高
@ColumnWidth(value = 20) // 列宽

public class ExcelArea implements Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelProperty("战区名称")
    private String name;

    @ExcelProperty("战区编码")
    private String code;

    @ExcelProperty("负责⼈名称")
    private String principal;

    @ExcelProperty("负责⼈联系⽅式")
    @TableField("phoneNumber")
    private String phoneNumber;
}
